import { detail, goods } from '../type/home'
export const addCart = (
  payload: detail
): { type: 'addGood'; payload: detail } => {
  return { type: 'addGood', payload }
}
//更改数量
export const changeNume = (
  payload: detail
): { type: 'totalNum'; payload: detail } => {
  return { type: 'totalNum', payload }
}
//删除商品
export const del = (payload: detail): { type: 'delGood'; payload: detail } => {
  return { type: 'delGood', payload }
}
// isSelect 改变单选状态
export const changeOne = (
  payload: detail
): { type: 'isSelect'; payload: detail } => {
  return { type: 'isSelect', payload }
}
